f = open("demo.log","a",encoding="utf-8")#打开文件以便写入
print('啊?',file=f)
print('噢K',file=f)
f.close()